def get_bmi(weight, height):
    return weight / height ** 2

def get_result(bmi):
    if bmi < 18.5:
        return "体重过低"
    elif bmi < 24:
        return "正常"
    elif bmi < 28:
        return "超重"
    else:
        return "肥胖"

weight = input("请输入您的体重，单位是千克：")
height = input("请输入您的身高，单位是米：")
bmi = get_bmi(float(weight), float(height))
result = get_result(bmi)
print("您的体重指数是：" + str(round(bmi, 1)) + " (" + result + ")")
